﻿//-----------------------------------------------------------------------
// <copyright file="MetadataRegistration.cs" company="Noboru Project">
//      Copyright (c) Noboru Project. All rights reserved.
//
//      This source code is subject to terms and conditions of the New BSD License (BSD).
//      A copy of the license can be found in the License.html file at the root of this 
//      distribution. If you can not locate the New BSD License (BSD), please send an 
//      email to noboru_adm@live.com.
//      By using this source code in any fashion, you are agreeing to be bound by
//      the terms of the New BSD License (BSD) for Noboru.
//
//      You must not remove this notice, or any other, from this software.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Reflection;
using Microsoft.Windows.Design.Metadata;
using Noboru.Windows.Controls.Design.Common;

namespace Noboru.Windows.Controls.Design
{
    /// <include file='Documentation\MetadataRegistrationDocumentation.uex' path='Members/Member[@for="MetadataRegistration.Class"]/*' />
    public class MetadataRegistration : MetadataRegistrationBase, IProvideAttributeTable
    {
        /// <include file='Documentation\MetadataRegistrationDocumentation.uex' path='Members/Member[@for="MetadataRegistration.Constructor"]/*' />
        public MetadataRegistration()
            : base()
        {
            Type type = typeof(ToolStripLabel);
            AssemblyName assemblyName = type.Assembly.GetName();
            this.AssemblyFullName = ", " + assemblyName.FullName;
            this.XmlResourceName = type.Namespace + ".Design." + assemblyName.Name + ".XML";
        }

        /// <include file='Documentation\MetadataRegistrationDocumentation.uex' path='Members/Member[@for="MetadataRegistration.AttributeTable"]/*' />
        public AttributeTable AttributeTable
        {
            get
            {
                return this.BuildAttributeTable();
            }
        }

        /// <include file='Documentation\MetadataRegistrationDocumentation.uex' path='Members/Member[@for="MetadataRegistration.AddAttributes"]/*' />
        protected override void AddAttributes(AttributeTableBuilder builder)
        {
        }
    }
}
